package cn.kimmking.kksharding.engine;

/**
 * Sharding context.
 *
 * @Author : kimmking(kimmking@apache.org)
 * @create 2024/7/25 下午8:46
 */
public class ShardingContext {

    private static final ThreadLocal<ShardingResult> LOCAL = new ThreadLocal<>();

    public static ShardingResult get() {
        return LOCAL.get();
    }

    public static void set(ShardingResult shardingResult) {
        LOCAL.set(shardingResult);
    }

}
